<?php 
define('IN_QY',true);
session_start();
require("include/common.inc.php");
require('sku_model.php');


    $fid=trim($_GET['fid']);
	
	$goods_id = $fid;
   $goods_sku_arr = get_goods_sku_arr($goods_id);

$choosed_sku = '';
$sku_id = '';
if($_GET['sku_id']){
    $sku_id = $_GET['sku_id'];
    $choosed_sku = c_getRow("select * from tbl_goods_sku WHERE id = ".$_GET['sku_id']." limit 1");
    $sku_info_name = explode(',',$choosed_sku['sku_info_name']);
    $choosed_sku['sku_info_name_arr'] = $sku_info_name;
    $sku_pic_arr = $choosed_sku['sku_pic'] ? explode(',',$choosed_sku['sku_pic']) : '';
}
list($get_goods_sku_show_list,$sku_info_key_ch_arr) = get_goods_sku_show_list($goods_id);
	
	
	

    $sql = "select * from tbl_taospp where id = '".$fid."'";
    $query=mysql_query($sql);
    $row=mysql_fetch_array($query);
	$danjian=$row['ggid'];
    $xiang=$row['unit'];	
    $isjiu=$row['entitle'];	
    $ggid=$row['ggid'];	
    $encode=$row['encode'];	
    $unit=$row['unit'];
    $origin=$row['origin'];	
    $brand=$row['brand'];
    $ggnum=$row['ggnum'];
	$goodstype=$row['goodstype'];
    $zswprice=$row['zswprice'];	
    $addviprice=$row['addviprice'];	
    $goodyear=$row['goodyear'];	
    $shopname=$row['chtitle'];	
    $vip_price=$row['vip_price'];		
    $stocknum=$row['stocknum']-$row['soldnum'];	
	$imgever =explode(",", $row['img']);
	if($goodstype==1){
	$gdtitle='海购专区-众晒网';
		
	}
	if($goodstype==2){
	$gdtitle='母婴商城-众晒网';
		
	}
	if($goodstype==3){
	$gdtitle='闲置交易-众晒网';
		
	}	
	
if($row['ggunit']!=3){	
$maijia=$row['ggunit'];
$sqlm = "select * from tbl_user where id=".$maijia;
$querym=mysql_query($sqlm);
$rowm=mysql_fetch_array($querym);
$maijiaid=$rowm['id'];
$jifen = $rowm['jifen'];
$yuee = $rowm['yuee'];
$xyf = $rowm['xyf'];
$vip = $rowm['vip'];
//查上传量
$sqla = "select count(*) as cc from tbl_taospp where state=0 AND  ggunit='".$maijiaid."'";
$querya=mysql_query($sqla);
$rowa=mysql_fetch_array($querya);
$s = $rowa['cc'];
//刷单表
$sqlshua = "select * from tbl_shuadan where uid='".$maijiaid."'";
$queryshua=mysql_query($sqlshua);
$rowshua=mysql_fetch_array($queryshua);

if($rowshua){	
$shua = $rowshua['count']; 	
$shuadianji = $rowshua['dianji']+$row['dianji']; 	
}else{
$shua =0; 	
}





//查成交量
$sqlb = "select count(*) as dd from tbl_lbb where state='1' AND daili='".$maijiaid."'";
$queryb=mysql_query($sqlb);
$rowb=mysql_fetch_array($queryb);
$chengjiaoliang = $rowb['dd']+$shua;  
//加入购物车数量
$sqlbu = "select count(*) as ddu from tbl_gwc where userid='".$_COOKIE['userid']."'";
$querybu=mysql_query($sqlbu);
$rowbu=mysql_fetch_array($querybu);
$gwcsl= $rowbu['ddu'];  
//认证
$sqls = "select * from tbl_shiming where userid='".$maijiaid."'";
$querys=mysql_query($sqls);
$rows=mysql_fetch_array($querys);
$sm="未实名";
if($rows){
	$sm="已实名";
}	
}


if(!$row){
    echo "<script type='text/javascript'>alert('商品不存在！');history.go(-1);</script>";
    exit;
}


if($_GET["act"]=="sc")
{
	if(!$_COOKIE['userid']){
	echo "<script type='text/javascript'>location.href='/wap/mlogin.php';</script>";
	exit;
}

	   $maijiaa=$_GET['maijia'];
	   if($maijiaa==$_COOKIE['userid']){
	echo "<script type='text/javascript'>alert('不能关注自己!');history.go(-1);</script>";
	exit;
}
	   $sqlh = "select * from tbl_shoucang where  maijia = '".$maijiaa."'  AND userid = '".$_COOKIE['userid']."'  ";
    $queryh=mysql_query($sqlh);
    $rowh=mysql_fetch_array($queryh);
    if($rowh){
        echo "<script type='text/javascript'>alert('不要重复关注!');history.go(-1);</script>";
        exit;
    }
	
		$sql = "insert into
	 tbl_shoucang
	  values (
	  	0,
	  	'".$_COOKIE['userid']."',
		'".$infoidd."',
		'".$maijiaa."',		
	    '".date('Y-m-d H:i:s')."',
		1
		)";
	mysql_query($sql);
	 mysql_close();
	 echo "<script type='text/javascript'>alert('关注成功');history.go(-1);</script>";
	 exit;
}




?>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
	<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no"  name="viewport" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>商品详情-<?=$gdtitle?></title>
    <meta name="description" content="共享资源,共享二手资源,闲置二手资源,闲置资源">
    <meta name="keywords" content="共享资源,共享二手资源,闲置二手资源,闲置资源">
    <meta name="author" content="共享资源,共享二手资源,闲置二手资源,闲置资源">    
    <link href="/ui/css/Hui.css" rel="stylesheet" type="text/css" />
    <link href="/ui/plugins/swiper/swiper.min.css" rel="stylesheet" />
    <script type="text/javascript" src="/ui/layer/mobile/layer.js"></script>   
	<script type="text/javascript" src="/ui/js/jquery-1.9.1.min.js"></script>  
	<link href="/ui/plugins/photoswipe/photoswipe.css" rel="stylesheet" />
    <link href="/ui/plugins/photoswipe/default-skin/default-skin.css" rel="stylesheet" />	
	
    <style type="text/css">
	 #header{width:100%; position:absolute; top:0;}
     #footer{width:100%; height:55px; position:fixed ;overflow:hidden; bottom:0;z-index:9}	 
     #main{width:100%; overflow: auto; position:absolute; top:45px;bottom:0px;}
	    .my-gallery { width: 100%; float: left; }
        .my-gallery img { width: 100%; height: auto; }
        .my-gallery figure { display: block; float: left; margin: -11px 5px 5px 0; width: 100%; }
        .my-gallery figcaption { display: none; }	
	.gw_num{border: 1px solid #dbdbdb;width: 140px;line-height: 29px;overflow: hidden;margin-left: 10px;}
	.gw_num em{display: block;height: 29px;width: 29px;float: left;color: #FF5722;border-right: 1px solid #dbdbdb;text-align: center;cursor: pointer;}
	.gw_num .num{display: block;float: left;text-align: center;width: 55px;font-style: normal;font-size: 16px;line-height: 24px;border: 0;color: #FF5722;font-weight: 800;}
	.gw_num em.add{float: right;border-right: 0;border-left: 1px solid #dbdbdb;}
	.goods_attr li.sel {border: 1px solid #ff7e00;color: #ffffff;background: #ffa200;}
	img.H-width-100-percent.H-display-block {
    width: 100%;
    height: 180px;
}
ul{display: flex;justify-content: space-around;background-color: #FFFFFF;color: #000000;text-align: center;height: 2.5em;line-height: 2.5em; width: 100%;}
ul li{width: 50%;}
ul .curent{color: #FF8E20;background-color: #FFFFFF; border-bottom: 2px solid;}
.btnpl {
    margin-top: 6px;
    height: 27px;
    font-size: 14px;
    width: 70px;
    margin-left: 15px;
    border-radius: 3px;
    border: 0;
    background: #ececec;
    color: #8e8e8e;
}
</style>	
</head>
<body class="H-flexbox-vertical H-theme-background-color-white">
     <!--################### zsw ###################-->
    <header class="H-header H-theme-background-color-white" id="header">
        <span tapmode="" onclick="H.closeWin();" class="H-icon H-position-relative H-display-inline-block H-float-left H-vertical-middle H-theme-font-color-gray H-padding-horizontal-left-5 H-z-index-100"><i class="H-iconfont H-icon-arrow-left H-font-size-18 H-vertical-middle"style="color: #333;"></i></span>
        <div class="H-header-title H-center-all H-font-size-18 H-text-show-row-1 H-theme-font-color-black H-position-absolute H-width-100-percent" style="color: #333;background-image: url(/haigou/ui/img/haigoutop.png);no-repeat;background-size: 100%  100%;">商品详情</div>
		<div  tapmode="" onclick="H.openWin('htgwc', 'htgwc.php');">
         <span class="H-icon H-position-relative H-display-inline-block H-float-right H-vertical-middle H-theme-font-color-333 H-padding-horizontal-right-10 H-z-index-100"><i class="H-iconfont H-icon-shopping-cart H-font-size-20 H-vertical-middle"></i></span>
        </div>
    </header>  
     <!--################### zsw ###################-->
    <div id="main" style="background-color:white;">  
	
	<div class="H-swiper H-position-relative H-width-100-percent H-box-sizing-border-box H-overflow-scrolling" style="height:66.5%;">
        <div class=" swiper-normal H-position-absolute H-width-100-percent H-height-100-percent" style="height: 96%;">
		
            <div class="swiper-wrapper">
       

		 
		 														<?php
			$sqlimg="SELECT img FROM tbl_taospp WHERE id= ".$fid;
			$rowimg= mysql_query($sqlimg);
			$rowall=mysql_fetch_array($rowimg);
			$imgeve =explode(",", $rowall['img']);
			// print_r($imgeve);
			// $roweve=$rowall['ywyuedu'];
			 $imglen=count($imgeve);
			foreach($imgeve as $src){
				if(strlen($src)<=0){
					continue;
				}else{
				echo "
				
                 <div class='swiper-slide'><img src='$src'  id='sbtan' class='H-width-100-percent H-height-100-percent' style='width:100%;height:104%' /></div>

					      ";
		              }
			          }
		              ?>
            </div>
			 

			 
            <div class="swiper-pagination" id=""></div>
        </div>
    </div>
  <!--################### zsw ###################-->	
    <div class="H-theme-background-color-white H-theme-font-color-333 H-padding-10 H-font-size-14" onclick="OpenBbs(1);">
         <?=$row['chtitle']?>      
    </div>
	
    
	
        <div class="H-theme-background-color-white H-theme-font-color-333 H-padding-10 H-font-size-14" style="color:coral;font-weight:900; padding: 3px;">
			<span class="H-font-size-12 H-margin-horizontal-right-5" style="font-size: 1.4em;">
		<?php if($isjiu==9 or $isjiu==11 or $isjiu==8 or $isjiu==10){ ?>
		￥<?=$row['outprice']?>
		<?php } ?>
		<?php if($isjiu!=9 and $isjiu!=11 and $isjiu!=8 and $isjiu!=10){ ?>
		￥<?=$row['zswprice']?>
		<?php } ?>
		
		<?php
		if($row['linkurl'] == 1){
         $goods_id = $row['id'];
         $wap_url = c_getRow("select * from tbl_goods_link WHERE goods_id = '$goods_id' limit 1; ")['wap'];
        }
        ?>
		   
		   </span>
  				
			<!--------------------------	
		   <span tapmode="" onclick="H.openWin('htspxq', '<?=$wap_url?>');"   class="H-font-size-12 H-margin-horizontal-right-5" style='float: right; margin-top: 8px;'>
		      		该商品参加海购套餐优惠活动
		   </span>

		   <span tapmode="" onclick="H.openWin('htspxq', '<?=$wap_url?>');"   class="H-font-size-12 H-margin-horizontal-right-5">
		      		<img src='/ui/image/优惠惠.png' class='H-width-100-percent H-height-100-percent' style='width:12px; border-radius: 3px; float: right; margin-top: 12px;' />
		   </span>
			   ---------------------------->	   
		   
		</div>
					<?php if($row['goodstype']==1){ ?>
       <div class="H-theme-background-color-white H-theme-font-color-333 H-padding-10 H-font-size-14" style="color:#FDC637;font-weight:900; padding: 3px;">
			<span class="H-font-size-12 H-margin-horizontal-right-5" style="font-size: 1.4em;">
		    ￥ <?=$row['vip_price']?>
		   </span>
  				
				
		   <span tapmode="" onclick="H.openWin('htspxq', '<?=$wap_url?>');"   class="H-font-size-12 H-margin-horizontal-right-5" >
		      		<img src="/haigou/ui/img/组 25.png" style="width: 40px;">
		   </span>
		   <span tapmode="" onclick="H.openWin('cwvip1', '/wap/cwvip1.php');"  style="text-decoration: underline;"  class="H-font-size-12 H-margin-horizontal-right-5">
		      		开通会员享优惠
		   </span>
		</div>
		
				<?php } ?>
		<!--------
        <span class="H-badge H-display-block H-margin-horizontal-right-5"><label class="H-display-inline-block H-vertical-middle H-theme-background-color5 H-theme-font-color-white H-font-size-12">
		<?php if($isjiu==9){ ?>
	    单箱顺丰包邮
		<?php } ?>
		<?php if($isjiu!==9){ ?>
		满198元（2公斤内）包邮
		<?php } ?>

		</label></span>	
		------>

		
			<?php if($row['ggunit']==0){ ?>
	     <span class="H-badge H-display-block H-margin-horizontal-right-5" style="margin-right: -96px;margin-top: 2px;">
		<img src='ui/img/自营.png' class='H-width-100-percent H-height-100-percent' style='width:43%;height:43%' />
		 </span>
		 
			<?php } ?>
					<?php if($row['hotlevel']==1){ ?>	
	     <span class="H-badge H-display-block H-margin-horizontal-right-10" >
		<img src='ui/img/拇指1.png' class='H-width-100-percent H-height-100-percent' style='width:5%;' />
		 </span>			
			<?php } ?>
			
					<?php if($row['hotlevel']==2){ ?>	
	     <span class="H-badge H-display-block H-margin-horizontal-right-10" >
		<img src='ui/img/拇指2.png' class='H-width-100-percent H-height-100-percent' style='width:10%;' />
		 </span>			
			<?php } ?>
			
					<?php if($row['hotlevel']==3){ ?>	
	     <span class="H-badge H-display-block H-margin-horizontal-right-10" >
		<img src='ui/img/拇指3.png' class='H-width-100-percent H-height-100-percent' style='width:15%;' />
		 </span>			
			<?php } ?>		




			
			
   
	

  <!--################### zsw ###################-->		

    <div tapmode="" onclick="H.swiperShare('.single-menu', '.zp-share', 'zps');" class="H-text-list H-flexbox-horizontal  H-theme-background-color-white H-border-vertical-bottom-after H-vertical-middle H-touch-active">
        <div class="H-flex-item H-padding-horizontal-both-10 H-font-size-16 H-padding-vertical-both-12">选择规格</div>
        <span class="H-badge H-display-block H-margin-horizontal-right-5">请选择</span>
        <span class="H-icon H-padding-horizontal-right-5 H-display-block"><i class="H-iconfont H-icon-arrow-right H-theme-font-color-ccc H-font-size-14 H-vertical-middle"></i></span>
    </div>


	<!------->		
  
    
	<!------->
    <div class="H-padding-vertical-bottom-10"></div>
    <div class="H-border-vertical-both-after">
        <div class="H-text-list H-flexbox-horizontal  H-theme-background-color-white H-border-vertical-bottom-margin-both-10-after H-vertical-middle H-touch-active">
        <div class="H-flex-item H-padding-horizontal-both-10 H-font-size-16 H-padding-vertical-both-12">运费</div>
        <span class="H-badge H-display-block"><label class="H-display-inline-block H-vertical-middle H-theme-font-color-black H-font-size-12">

		<?php if($row['typeid']==46){ ?>
	    顺丰包邮
		<?php } ?>	
		
		<?php if($row['typeid']!=46){ ?>
	  
	  		<?php if($row['ggunit']==0){ ?>
	   江浙沪运费12元起
		<?php } ?>

		<?php if($row['ggunit']!=0){ ?>
	    包邮
		<?php } ?>
	  
	  
	  
		<?php } ?>	
		
		
		

		
		
		
		</label></span>
        <span class="H-icon H-padding-horizontal-right-5 H-display-block"><i class="H-iconfont H-icon-arrow-right H-theme-font-color-ccc H-font-size-14 H-vertical-middle"></i></span>

        </div>
		
		<!--------------------------------
		<?php if($goodstype!=3 and $goodstype!=2){ ?>
        <div tapmode="" onclick="H.swiperShare('.show-yunfei','.zp-yunfei','space');" class="H-text-list H-flexbox-horizontal  H-theme-background-color-white H-border-vertical-bottom-margin-both-10-after H-vertical-middle H-touch-active">
        <div class="H-flex-item H-padding-horizontal-both-10 H-font-size-16 H-padding-vertical-both-12">优惠券</div>
        <span class="H-badge H-display-block"><label class="H-display-inline-block H-vertical-middle H-theme-font-color-red H-font-size-12">
		<?php if($isjiu==20){ ?>
	    该商品不可以使用优惠券
		<?php } ?>	
		<?php if($isjiu!=20){ ?>
		具体的优惠券说明
		<?php } ?>			

		
		</label></span>
        <span class="H-icon H-padding-horizontal-right-5 H-display-block"><i class="H-iconfont H-icon-arrow-right H-theme-font-color-ccc H-font-size-14 H-vertical-middle"></i></span>

        </div>

		<?php } ?>	
		
		---------------------------------->
		<?php if($goodstype!=3){ ?>
		 <div tapmode="" onclick="H.swiperShare('.show-services','.zp-menu','space');" class="H-text-list H-flexbox-horizontal  H-theme-background-color-white H-vertical-middle H-touch-active">
          <div class="H-flex-item H-padding-horizontal-both-10 H-font-size-16 H-padding-vertical-both-12">服务说明</div>
        <span class="H-badge H-display-block"><label class="H-display-inline-block H-vertical-middle H-theme-font-color-black H-font-size-12">正品保证.发货&售后.关于快递...</label></span>
        <span class="H-icon H-padding-horizontal-right-5 H-display-block"><i class="H-iconfont H-icon-arrow-right H-theme-font-color-ccc H-font-size-14 H-vertical-middle"></i></span>

        </div>	
		
				<?php } ?>	
		
		<?php if($goodstype!=3){ ?>
        <div tapmode="" onclick="H.swiperShare('.show-servicess','.zp-fuwu','space');" class="H-text-list H-flexbox-horizontal  H-theme-background-color-white H-vertical-middle H-touch-active">
            <div class="H-flex-item H-padding-horizontal-both-10 H-font-size-16 H-padding-vertical-both-12">规格参数</div>
        <span class="H-badge H-display-block"><label class="H-display-inline-block H-vertical-middle H-theme-font-color-black H-font-size-12">商品参数</label></span>
        <span class="H-icon H-padding-horizontal-right-5 H-display-block"><i class="H-iconfont H-icon-arrow-right H-theme-font-color-ccc H-font-size-14 H-vertical-middle"></i></span>

        </div>		
		
				<?php } ?>	
		
    </div>   
	<!--详情----->
	      <div style="margin-top:4px;"></div>
		  <div class="my-gallery" itemscope itemtype="http://schema.org/ImageGallery">
	
			<figure itemprop='associatedMedia' itemscope itemtype='http://schema.org/ImageObject'>
	
			<?php if($row['goodstype']==1){ ?>
	
	            <a href='/haigou/ui/img/xfzgzs.png' itemprop='contentUrl' data-size='414x324'>
                    <img src='/haigou/ui/img/xfzgzs.png' style='width:100%' itemprop='thumbnail' alt='Image description' />
                </a>
				
				
	      <?php } ?>
	
			<?php if($row['goodstype']==2){ ?>
	

	
	            <a href='/ui/image/lun9.jpg' itemprop='contentUrl' data-size='460x460'>
                    <img src='/ui/image/lun9.jpg' style='width:100%' itemprop='thumbnail' alt='Image description' />
                </a>	
	
	
	      <?php } ?>
		  
			<?php if($row['goodstype']==3){ ?>
	

		            <a href='/ui/image/闲置详情照片.jpg' itemprop='contentUrl' data-size='460x460'>
                    <img src='/ui/image/闲置详情照片.jpg' style='width:100%' itemprop='thumbnail' alt='Image description' />
                </a>
	      <?php } ?>
		  
		     <figcaption itemprop='caption description'>  </figcaption>
               </figure>
		       </div>  
	<!--详情----->	
	    <div class="H-padding-vertical-bottom-10"></div>
    <div class="H-text-list H-flexbox-horizontal  H-theme-background-color-white H-border-vertical-bottom-after H-vertical-middle H-touch-active">
    <header id="tab-name" style="width:100%;">
        <ul>
                <li class="curent">商品详情</li>
                <li>商品评价</li>
                
        </ul>
    </div>
    </header>
	<!------->
	<div id="tab-box">
	 <section style="display: block;">	
	    <div class="H-margin-vertical-top-5 H-theme-background-color-white H-padding-vertical-bottom-5" style="width:100%">
		<p class="H-font-size-13 H-theme-font-color-666 H-padding-horizontal-both-5  H-margin-vertical-top-8 H-margin-vertical-bottom-5" style="font-size:16px;"><?=$row['enbrand']?></p>
		  <div class="my-gallery" itemscope itemtype="http://schema.org/ImageGallery">
			<?php
			$sqlimg="SELECT agentprice FROM tbl_taospp WHERE id= ".$fid;
			$rowimg= mysql_query($sqlimg);
			$rowall=mysql_fetch_array($rowimg);
			$imgeve =explode(",", $rowall['agentprice']);
			// print_r($imgeve);
			// $roweve=$rowall['ywyuedu'];
			 $imglen=count($imgeve);
			foreach($imgeve as $src){
				if(strlen($src)<=0){
					continue;
				}else{
				echo "
         
				<figure itemprop='associatedMedia' itemscope itemtype='http://schema.org/ImageObject'>
                <a href='$src' itemprop='contentUrl' data-size='460x460'>
                    <img src='$src' style='width:100%' itemprop='thumbnail' alt='Image description' />
                </a>
                <figcaption itemprop='caption description'>  </figcaption>
               </figure>
			  
			  
					      ";
		              }
			          }
		    ?>
	        </div>
        <div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
            <div class="pswp__bg"></div>
            <div class="pswp__scroll-wrap">
                <div class="pswp__container">
                    <div class="pswp__item"></div>
                    <div class="pswp__item"></div>
                    <div class="pswp__item"></div>
                </div>
                <div class="pswp__ui pswp__ui--hidden">
                    <div class="pswp__top-bar">
                        <div class="pswp__counter"></div>
                        <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
                        <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
                        <div class="pswp__preloader">
                            <div class="pswp__preloader__icn">
                                <div class="pswp__preloader__cut">
                                    <div class="pswp__preloader__donut"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="pswp__caption">
                        <div class="pswp__caption__center"></div>
                    </div>
                </div>
            </div>
        </div>

        </div>
	<!--清关----->	


    </section>
    <section style="display: none;">
    <div style="width:100%; height:40px; border-bottom: 1px solid #e0e0e0">
		<button class="btnpl">全部</button>
		<button class="btnpl">有图</button>
    </div>
		<div id="pinglun">
		
				<div style="padding-left:10px; border-bottom: 1px solid #e0e0e0">
                    <p> <img src="http://img.goodshare.com.cn/wap/files/1543460951.jpeg" alt="" style="width: 31px; border-radius: 15px;"><span style="margin-top: 5px;position: absolute;margin-left: 10px;font-size: 19px;">我就我</span>
					<span style="float:right; font-size:10px; margin-right:5px;">2018.06.09</span>
                     </p>	
                     <p style="margin-left: 41px;">asAS</p>
                     <img src="/haigou/ui/img/海购须知.jpg" style="width:80px; height:80px; margin-left: 41px;">
				</div>
				
   </div>
    </section>
    
	<!------->	

			<?php if($row['goodstype']!=1){ ?>
	
 <div  >
        <div onclick="H.openWin('taomaijiashop', 'taomaijiashop.php?fid=<?=$rowm['id']?>');"   class="H-flexbox-horizontal H-padding-horizontal-both-10 H-theme-background-color-white H-touch-active" style="height:77px;">
                <img src="<?php echo $rowm['username']; ?>" width="50" height="50" style="margin-top:5px;">
 
                <p style="margin-left:5px;"><?=mb_substr($rowm['shuyu'],0,6,'utf-8')?> 
						<?php if($rows['daili']==1){ ?>
  <span class="H-icon H-display-inline-block H-padding-horizontal-both-5"><i class="H-iconfont H-icon-passuser H-vertical-middle H-font-size-14 H-theme-font-color8"></i></span>                
                        <?php } ?>
				
				
				        <?php if($rowm['typeid']==0){ ?>
                        <img src="/ui/login/img/geren.png" style="width: 16px;margin-right: 3px"  class=" H-font-size-18">
                        <?php } ?>
						<?php if($rowm['typeid']==1){ ?>
                        <img src="/ui/login/img/geti.png" style="width: 16px;margin-right: 3px"  class=" H-font-size-18">
                        <?php } ?>
						<?php if($rowm['typeid']==2){ ?>
                        <img src="/ui/login/img/qiye.png" style="width: 16px;margin-right: 3px"  class=" H-font-size-18">
                        <?php } ?>
						
						</p>
				
		      <div class="H-theme-font-color-999 H-text-show-row-1 H-margin-vertical-top-2 H-font-size-16" style="float: left;position: absolute;margin-left: 55px;font-size: 10px;margin-top: 45px;">
                      <?php echo $rowtu['content'] ;?>  
 
                    </div>
	
           
        </div>
				<div onclick="window.location.href='?act=sc&fid=<?=$fid?>&maijia=<?=$maijia?>'"  class="H-padding-horizontal-right-5 H-vertical-top" style="float:right;margin-top: -73px;">
                    <button class="H-outline-none H-theme-background-color-transparent H-font-size-13 H-theme-font-color1 H-theme-border-color1 H-theme-background-color1-click H-theme-font-color1-click H-border-radius-3 H-padding-horizontal-both-15 H-white-space-nowrap">收藏店铺</button>
                </div>
				
				<div onclick="H.openWin('taomaijiashop', 'taomaijiashop.php?fid=<?=$rowm['id']?>');"   class="H-padding-horizontal-right-5 H-vertical-top" style="float:right;margin-top: -37px;">
                    <button class="H-outline-none H-theme-background-color-transparent H-font-size-13 H-theme-font-color1 H-theme-border-color8 H-theme-background-color8-click H-theme-font-color8-click H-border-radius-3 H-padding-horizontal-both-15 H-white-space-nowrap">进入店铺</button>
                </div>				
		
        <div class="H-flexbox-horizontal H-text-align-center H-padding-horizontal-both-5 H-line-height-normal H-theme-font-color-black H-padding-vertical-both-15 H-box-sizing-border-box H-border-vertical-bottom-after H-theme-background-color-white">
            <div  onclick="H.openWin('taomaijiashop', 'taomaijiashop.php?fid=<?=$rowm['id']?>');" class="H-flex-item" >
                <span class="H-icon H-center-all"><?=$s?></span>
                <label class="H-display-block H-font-size-13 H-margin-vertical-top-5 H-theme-font-color-999">在售宝贝</label>
            </div>
            <div class="H-flex-item">
                <span class="H-icon H-center-all"><?=$chengjiaoliang?></span>
                <label class="H-display-block H-font-size-13 H-margin-vertical-top-5 H-theme-font-color-999">累计交易</label>
            </div>
            <div class="H-flex-item">
                <span class="H-icon H-center-all"><?=$sm?></span>
                <label class="H-display-block H-font-size-13 H-margin-vertical-top-5 H-theme-font-color-999">实名状态</label>
            </div>
            <div class="H-flex-item">
                <span class="H-icon H-center-all"><?php echo $xyf?></span>
                <label class="H-display-block H-font-size-13 H-margin-vertical-top-5 H-theme-font-color-999">信用分</label>
            </div>
        </div>
    </div>
	
	
	
	
	
	
	<?php } ?>	


				<?php if($row['goodstype']==1){ ?>
			  <div class="my-gallery" itemscope itemtype="http://schema.org/ImageGallery">
	
			<figure itemprop='associatedMedia' itemscope itemtype='http://schema.org/ImageObject'>
	            <a href='/haigou/ui/img/wenxingtishi.jpg' itemprop='contentUrl' data-size='414x232'>
                    <img src='/haigou/ui/img/wenxingtishi.jpg' style='width:100%' itemprop='thumbnail' alt='Image description' />
                </a>
				
				<figcaption itemprop='caption description'>  </figcaption>
               </figure>
			    </div>
	      <?php } ?>
	
	







<!-------------->	
	
	    <div class="H-padding-vertical-bottom-5"></div>
    <div class="H-channel-title H-flexbox-horizontal H-theme-background-color-white H-vertical-middle H-border-vertical-bottom-after">
        <div class="H-channel-line H-theme-background-color7 H-padding-vertical-top-15 H-padding-horizontal-left-3  H-margin-horizontal-left-10"></div>
        <div class="H-channel-text H-theme-font-color7 H-flex-item H-font-size-18 H-theme-font-color-black H-padding-10 H-margin-horizontal-right-10 H-text-show-row-1">
            相似推荐
        </div>
    </div>
	<!------->		
	 <div class="H-padding-vertical-bottom-5"></div>
    <div class=" H-font-size-14 H-clear-both H-width-100-percent H-display-table H-box-sizing-border-box H-padding-horizontal-left-5">
		                                    <?
  		    
	$sql = "select * from tbl_taospp where  state=1  ORDER by  rand() LIMIT 2";
	$query=mysql_query($sql);
	while($row=mysql_fetch_array($query))
	{	
	?>
						<?php
			$sqlimg="SELECT img FROM tbl_taospp WHERE id= ".$row['id'];
			$rowimg= mysql_query($sqlimg);
			$rowall=mysql_fetch_array($rowimg);
			$imgeve =explode(",", $rowall['img']);
			// print_r($imgeve);
			// $roweve=$rowall['ywyuedu'];
		              ?>
	
        <div tapmode="" onclick="H.openWin('htspxq', 'htspxq.php?fid=<?=$row['id']?>');" class=" H-display-table-cell H-float-left H-box-sizing-border-box H-width-avg-2 H-margin-vertical-bottom-5" style="height:230px;">
            <div class="H-theme-background-color-white H-margin-horizontal-right-5" style="height:172px;">
                <img src=" <?=$imgeve[0]?>" class="H-width-100-percent H-display-block" alt="" title="" />
                <div class="H-padding-horizontal-both-3 H-text-show-row-2 H-padding-vertical-top-5">
                   <?=mb_substr($row['chtitle'],0,8,'utf-8')?> 
                </div>
                <div class="H-padding-horizontal-both-3 H-flex-item H-theme-font-color7 H-text-align-left H-vertical-middle">
                    ￥<span class="H-font-size-22 H-margin-horizontal-right-5"><?=$row['zswprice']?></span>
                </div>
            </div>
        </div>

		   <?php } ?>    
		

    </div>
    <div style="width:100%; height:80px;"></div>
	<!------->	

	<!------->		

	  <!---------------dgg---------------->	
	
    </div>
	  <!--################### 底部开始线 ###################-->

    <footer class="H-footer H-flexbox-horizontal H-theme-background-color-white H-margin-vertical-top-10 H-footer-half" id="footer">
		
         <div  tapmode="" onclick="_MEIQIA('showPanel')"   class="H-flex-item H-center-all H-text-align-center H-theme-font-color-999 H-touch-active ">
            <div>
                <span class="H-icon H-display-block H-line-height-normal"><i class="H-iconfont H-icon-msg H-font-size-26"></i></span>
                <strong class="H-font-size-11 H-display-block H-font-weight-normal H-margin-vertical-bottom-2">联系</strong>
            </div>
        </div>
		
         <div  tapmode="" onclick="H.openWin('htgwc', 'htgwc.php');"   class="H-flex-item H-center-all H-text-align-center H-theme-font-color-999 H-touch-active ">
            <div>
                <span class="H-icon H-display-block H-line-height-normal"><i class="H-iconfont H-icon-shopping-cart H-font-size-26"></i></span>
                <strong class="H-font-size-11 H-display-block H-font-weight-normal H-margin-vertical-bottom-2">购物车</strong>
            </div>
        </div>

        <div tapmode="" onclick="H.swiperShare('.single-menu', '.zp-share', 'zps');" class="H-flex-item H-center-all H-text-align-center H-theme-font-color-999 H-touch-active swipe-item">
          <button class="H-button H-font-size-12 H-outline-none H-padding-vertical-both-8 H-padding-horizontal-both-20 H-theme-background-color8 H-theme-font-color-white H-theme-border-color8 H-theme-border-color8-click H-theme-background-color8-click H-theme-font-color8-click H-border-radius-3" style="border-radius:19px;background-color: #e6d720;border: 1px solid #e6d720;">
		  加入购物车</button>
        </div> 
		<!------
		&nbsp;
        <div tapmode="" onclick="H.openWin('htshopxiadan', 'htshopxiadan.php?fid=<?=$fid?>');" class="H-flex-item H-center-all H-text-align-center H-theme-font-color-999 H-touch-active swipe-item">
           <button class="H-button H-font-size-12 H-outline-none H-padding-vertical-both-8 H-padding-horizontal-both-20 H-theme-background-color7 H-theme-font-color-white H-theme-border-color7 H-theme-border-color7-click H-theme-background-color7-click H-theme-font-color7-click H-border-radius-3" style="border-radius:19px;background-color: #fba16d;border: 1px solid #fba16d;">马上购买</button>
        </div> &nbsp;

		&nbsp;
        <div tapmode="" onclick="H.openWin('htgwc', 'htgwc.php');"  class="H-flex-item H-center-all H-text-align-center H-theme-font-color-999 H-touch-active swipe-item">
           <button class="H-button H-font-size-12 H-outline-none H-padding-vertical-both-8 H-padding-horizontal-both-20 H-theme-background-color7 H-theme-font-color-white H-theme-border-color7 H-theme-border-color7-click H-theme-background-color7-click H-theme-font-color7-click H-border-radius-3" style="border-radius:19px;background-color: #fba16d;border: 1px solid #fba16d;">查看购物车</button>
        </div> &nbsp;
		
		----->
			&nbsp;
        <div tapmode="" onclick="H.swiperShare('.single-menu', '.zp-share', 'zps');"  class="H-flex-item H-center-all H-text-align-center H-theme-font-color-999 H-touch-active swipe-item">
           <button class="H-button H-font-size-12 H-outline-none H-padding-vertical-both-8 H-padding-horizontal-both-20 H-theme-background-color7 H-theme-font-color-white H-theme-border-color7 H-theme-border-color7-click H-theme-background-color7-click H-theme-font-color7-click H-border-radius-3" style="border-radius:19px;background-color: #fba16d;border: 1px solid #fba16d;">立即购买</button>
        </div> &nbsp;
		
       
    </footer>
	
	    <div class="single-menu H-flexbox-vertical H-display-none-important H-position-fixed H-width-100-percent H-height-100-percent H-z-index-1000000 H-horizontal-left-0 H-vertical-bottom-0 H-horizontal-right-0">
        <div class="zps H-flex-item"></div>


		
        <div class="zp-share H-theme-background-color-white">
            <div class="H-padding-vertical-both-15 H-text-align-center H-font-size-16">
                请选择
            </div>
	<!------->
    <div class="H-padding-horizontal-both-10 H-border-vertical-bottom-margin-both-10-after H-padding-vertical-bottom-10">
	
		        <div class="H-flexbox-horizontal H-theme-background-color-white H-border-vertical-bottom-after">
                <div class="H-padding-vertical-both-8">
                    <img id="img" src="<?=$imgever[0]?>" alt="" title="" class=" H-display-block H-margin-horizontal-left-10  H-width-45 H-height-45" />
                </div>
                <div class="H-flex-item H-margin-10">
                    <div class="H-theme-font-color-999 H-font-size-14 H-flexbox-horizontal H-text-horizontal-left H-box-sizing-border-box">￥:
                        <span class="H-display-block H-flex-item H-text-align-left H-font-size-14"><span id="money" class="H-theme-font-color7"><?=$zswprice?></span></span>
						
						<?php if($vip_price!=0.00){ ?>
                        <span class="H-display-block H-flex-item H-text-align-left H-font-size-14">
						￥: <span id="vipmoney" class="H-theme-font-color7" style="font-size:20px; color:#FDC637;">
						<?=$vip_price?></span>
                        <img src="/haigou/ui/img/组 25.png" style="width: 40px; font-size:20px; color:#FDC637;">
                       </span>	
                         <?php } ?>	
						 <?php if($vip_price==0.00){ ?>
						 <span id="vipmoney" class="H-theme-font-color7" style="display:none;">
						0.00</span>
					     <?php } ?>	
                        <span tapmode="" onclick="H.swiperShare('.single-menu', '.zp-share', 'zps');" class="H-display-block H-flex-item H-text-align-right H-theme-font-color-999 H-font-size-12">
						<i class="H-iconfont H-icon-guanbi2 H-theme-font-color-333 H-font-size-18 H-margin-horizontal-right-5"></i>
						</span>
                    </div>		
                </div>
            </div>
	
	                <!-- sku选择 -->
                <?
                    if($goods_sku_arr){
                        include('sku_choose.php');
                    }
                ?>

		
    </div>
	
		

		
          <input type="hidden"  name="skuid" id="skuid">

		<?php if($goodstype!=3){ ?>	
		<!------->
	<p class="H-padding-horizontal-both-10 H-font-size-15" style="color: #fc8b4a;">购买数量</p>		

	<!-----
	<input class="sdddq" id="inp" name="nums" readonly="readonly" data_step="1" data_min="1" data_max="99" data_digit="0" value="1"/>
	
	------->
	
<div class="gw_num">
<em class="jian">-</em>
<input type="number" value="1" name="nums" readonly="readonly" class="num" min="1" max="99" />
<em class="add">+</em>
</div>
	


	

		<?php } ?>		
		<?php if($goodstype==3){ ?>	
	
	
		<p class="H-padding-horizontal-both-10 H-font-size-15" style="color: #f96233;">数量:1件</p>		
	 <input type="hidden" value="1" name="nums" readonly="readonly" class="num" min="1" max="99" />
	
	
			<?php } ?>	
  	<!------->
	    <div class="H-padding-vertical-bottom-10"></div>
			<!----
          <div class="H-accordion-area">
        <p class="H-padding-horizontal-both-10 H-font-size-15" style="color: #fc8b4a;"></p>
        <div class="H-padding-10 H-border-vertical-bottom-after  H-theme-background-color-white H-flexbox-horizontal H-theme-font-color-999 H-font-size-14 H-flexbox-horizontal H-text-horizontal-left H-box-sizing-border-box H-margin-vertical-bottom-5" >
           <span class="H-display-block H-flex-item H-theme-font-color-black-active" style="line-height:20px">是否开票
          <input type="checkbox" value="9" name="tax" class="H-switch H-position-relative H-theme-background-color-white H-theme-font-color8" style="float:right" />  
           </span>
        </div>
        </div>
		--->
  	<!-------> 
		    <div class="H-padding-vertical-bottom-5"></div>
<span>	

       <?php if($isjiu!=20 ){ ?>
          <span onclick="lipp()"  class="H-button H-font-size-12 H-outline-none H-padding-vertical-both-8 H-padding-horizontal-both-20 H-theme-background-color8 H-theme-font-color-white H-theme-border-color8 H-theme-border-color8-click H-theme-background-color8-click H-theme-font-color8-click H-border-radius-3" style="border-radius:19px;background-color: #FF9800;border: 4px solid #FF9800;margin-left:15px;">
		  加入购物车</span>
		  		<?php } ?>	
		  
		  
		 <span onclick="lip()" class="H-button H-font-size-12 H-outline-none H-padding-vertical-both-8 H-padding-horizontal-both-20 H-theme-background-color7 H-theme-font-color-white H-theme-border-color7 H-theme-border-color7-click H-theme-background-color7-click H-theme-font-color7-click H-border-radius-3" style="border-radius:19px;background-color: #efdb2e;border: 5px solid #efdb2e;">&nbsp;马上购买&nbsp;&nbsp;</span>
         &nbsp;

  </span>
      <div style="margin-top:20px;"></div>

  
  	<!------->

        </div>
	
    </div>	
	
    <div class="show-services H-flexbox-vertical H-display-none-important H-position-fixed H-width-100-percent H-height-100-percent H-z-index-1000000 H-horizontal-left-0 H-vertical-bottom-0 H-horizontal-right-0">
        <div class="space H-flex-item"></div>
        <div class="zp-menu H-theme-background-color-white">
            <div class="H-padding-vertical-both-15 H-text-align-center H-font-size-16">
                服务说明
            </div>
            <div class="H-flexbox-horizontal H-padding-vertical-bottom-10 H-font-size-14 H-border-vertical-bottom-margin-both-10-after">
                <i class="H-iconfont H-margin-vertical-both-3 H-icon-right H-theme-font-color7 H-padding-horizontal-both-15"></i>
                <div class="H-flex-item H-flexbox-vertical">
                    <span class="H-margin-vertical-both-5 H-theme-font-color-333 ">正品保证</span>
                    <span class="H-theme-font-color-999 H-padding-horizontal-right-15 H-font-size-12">
                     自营区所售商品100%为正品
                    </span>
                </div>
            </div>
            <div class="H-flexbox-horizontal H-padding-vertical-bottom-10 H-font-size-14 H-border-vertical-bottom-margin-both-10-after">
                <i class="H-iconfont H-margin-vertical-both-3 H-icon-right H-theme-font-color7 H-padding-horizontal-both-15"></i>
                <div class="H-flex-item H-flexbox-vertical">
                    <span class="H-margin-vertical-both-5 H-theme-font-color-333">发货&售后</span>
                    <span class="H-theme-font-color-999 H-padding-horizontal-right-15 H-font-size-12">
                      由众晒网提供售后服务
                    </span>
                </div>
            </div>
            <div class="H-flexbox-horizontal H-padding-vertical-bottom-10 H-font-size-14">
                <i class="H-iconfont H-margin-vertical-both-3 H-icon-right H-theme-font-color7 H-padding-horizontal-both-15"></i>
                <div class="H-flex-item H-flexbox-vertical">
                    <span class="H-margin-vertical-both-5 H-theme-font-color-333">关于快递</span>
                    <span class="H-theme-font-color-999 H-padding-horizontal-right-15 H-font-size-12">
                        红酒由顺丰快递配送,其他海购商品由申通快递配送
                    </span>
                </div>
            </div>
            
             <div class="H-flexbox-horizontal H-padding-vertical-bottom-10 H-font-size-14">
                <i class="H-iconfont H-margin-vertical-both-3 H-icon-right H-theme-font-color7 H-padding-horizontal-both-15"></i>
                <div class="H-flex-item H-flexbox-vertical">
                    <span class="H-margin-vertical-both-5 H-theme-font-color-333">关于运费</span>
                    <span class="H-theme-font-color-999 H-padding-horizontal-right-15 H-font-size-12">
                     红酒顺丰包邮
                    </span>
                     <span class="H-theme-font-color-999 H-padding-horizontal-right-15 H-font-size-12">
                        除红酒外的所有商品，按照正常运费收取。
                    </span>                   
                </div>
            </div>           

            <div tapmode="" onclick="H.swiperShare('.show-services', '.zp-menu', 'space');" class="H-theme-background-color7 H-theme-font-color-white H-padding-12 H-font-size-16 H-center-all H-margin-vertical-top-15">
             我明白了
            </div>
        </div>
    </div>	
	<!------->
	
    <div class="show-servicess H-flexbox-vertical H-display-none-important H-position-fixed H-width-100-percent H-height-100-percent H-z-index-1000000 H-horizontal-left-0 H-vertical-bottom-0 H-horizontal-right-0" style="z-index: 999999999;">
        <div class="space H-flex-item"></div>
        <div class="zp-fuwu H-theme-background-color-white">
            <div class="H-padding-vertical-both-15 H-text-align-center H-font-size-16">
                规格参数
            </div>
			<?php if($isjiu!=9  and $isjiu!=8 ){ ?>
            <div class="H-flexbox-horizontal H-padding-vertical-bottom-10 H-font-size-14">
                <i class="H-iconfont H-margin-vertical-both-3 H-icon-right H-theme-font-color7 H-padding-horizontal-both-15"></i>
                <div class="H-flex-item H-flexbox-vertical">
                    <span class="H-margin-vertical-both-5 H-theme-font-color-333">产地</span>
                    <span class="H-theme-font-color-999 H-padding-horizontal-right-15 H-font-size-12">
                    <?=$origin?>
                    </span>
                </div>
            </div>

			            <div class="H-flexbox-horizontal H-padding-vertical-bottom-10 H-font-size-14">
                <i class="H-iconfont H-margin-vertical-both-3 H-icon-right H-theme-font-color7 H-padding-horizontal-both-15"></i>
                <div class="H-flex-item H-flexbox-vertical">
                    <span class="H-margin-vertical-both-5 H-theme-font-color-333">库存</span>
                    <span class="H-theme-font-color-999 H-padding-horizontal-right-15 H-font-size-12">
                    <?=$stocknum?>
                    </span>
                </div>
            </div>
			


	<?php } ?>
			<?php if($isjiu==9 ){ ?>
			
            <div class="H-flexbox-horizontal H-padding-vertical-bottom-2 H-font-size-14 H-border-vertical-bottom-margin-both-10-after">
                <i class="H-iconfont H-margin-vertical-both-3 H-icon-right H-theme-font-color7 H-padding-horizontal-both-15"></i>
                <div class="H-flex-item H-flexbox-vertical">
                    <span class="H-margin-vertical-both-5 H-theme-font-color-333 ">品牌</span>
                    <span class="H-theme-font-color-999 H-padding-horizontal-right-15 H-font-size-12">
                        <?=$brand?>
                    </span>
                </div>
            </div>
			
            <div class="H-flexbox-horizontal H-padding-vertical-bottom-2 H-font-size-14 H-border-vertical-bottom-margin-both-10-after">
                <i class="H-iconfont H-margin-vertical-both-3 H-icon-right H-theme-font-color7 H-padding-horizontal-both-15"></i>
                <div class="H-flex-item H-flexbox-vertical">
                    <span class="H-margin-vertical-both-5 H-theme-font-color-333">净含量</span>
                    <span class="H-theme-font-color-999 H-padding-horizontal-right-15 H-font-size-12">
                        <?=$ggid?>
                    </span>
                </div>
            </div>
			
            <div class="H-flexbox-horizontal H-padding-vertical-bottom-2 H-font-size-14">
                <i class="H-iconfont H-margin-vertical-both-3 H-icon-right H-theme-font-color7 H-padding-horizontal-both-15"></i>
                <div class="H-flex-item H-flexbox-vertical">
                    <span class="H-margin-vertical-both-5 H-theme-font-color-333">箱规数量</span>
                    <span class="H-theme-font-color-999 H-padding-horizontal-right-15 H-font-size-12">
                    <?=$ggnum?>
                    </span>
                </div>
            </div>

			            <div class="H-flexbox-horizontal H-padding-vertical-bottom-2 H-font-size-14">
                <i class="H-iconfont H-margin-vertical-both-3 H-icon-right H-theme-font-color7 H-padding-horizontal-both-15"></i>
                <div class="H-flex-item H-flexbox-vertical">
                    <span class="H-margin-vertical-both-5 H-theme-font-color-333">酒精度</span>
                    <span class="H-theme-font-color-999 H-padding-horizontal-right-15 H-font-size-12">
                    <?=$addviprice?>
                    </span>
                </div>
            </div>
			
            <div class="H-flexbox-horizontal H-padding-vertical-bottom-2 H-font-size-14">
                <i class="H-iconfont H-margin-vertical-both-3 H-icon-right H-theme-font-color7 H-padding-horizontal-both-15"></i>
                <div class="H-flex-item H-flexbox-vertical">
                    <span class="H-margin-vertical-both-5 H-theme-font-color-333">产地</span>
                    <span class="H-theme-font-color-999 H-padding-horizontal-right-15 H-font-size-12">
                    <?=$origin?>
                    </span>
                </div>
            </div>	

            <div class="H-flexbox-horizontal H-padding-vertical-bottom-2 H-font-size-14">
                <i class="H-iconfont H-margin-vertical-both-3 H-icon-right H-theme-font-color7 H-padding-horizontal-both-15"></i>
                <div class="H-flex-item H-flexbox-vertical">
                    <span class="H-margin-vertical-both-5 H-theme-font-color-333">年份</span>
                    <span class="H-theme-font-color-999 H-padding-horizontal-right-15 H-font-size-12">
                    <?=$goodyear?>
                    </span>
                </div>
            </div>	

			            <div class="H-flexbox-horizontal H-padding-vertical-bottom-2 H-font-size-14">
                <i class="H-iconfont H-margin-vertical-both-3 H-icon-right H-theme-font-color7 H-padding-horizontal-both-15"></i>
                <div class="H-flex-item H-flexbox-vertical">
                    <span class="H-margin-vertical-both-5 H-theme-font-color-333">库存数量</span>
                    <span class="H-theme-font-color-999 H-padding-horizontal-right-15 H-font-size-12">
                    <?=$stocknum?>
                    </span>
                </div>
            </div>	

            <div class="H-flexbox-horizontal H-padding-vertical-bottom-2 H-font-size-14">
                <i class="H-iconfont H-margin-vertical-both-3 H-icon-right H-theme-font-color7 H-padding-horizontal-both-15"></i>
                <div class="H-flex-item H-flexbox-vertical">
                    <span class="H-margin-vertical-both-5 H-theme-font-color-333">单件重量</span>
                    <span class="H-theme-font-color-999 H-padding-horizontal-right-15 H-font-size-12">
                    <?=$encode?>
                    </span>
                </div>
            </div>	
			
			<?php } ?>	
            <div tapmode="" onclick="H.swiperShare('.show-servicess', '.zp-fuwu', 'space');" class="H-theme-background-color7 H-theme-font-color-white H-padding-12 H-font-size-16 H-center-all H-margin-vertical-top-15" style="z-index:999999999;">
                我明白了
            </div>
        </div>
    </div>	
	<!------->	


    <?include('footer.php');?>	
     <!--################################底部结束################################-->   
    <script src="/ui/script/H.js" type="text/javascript"></script>
	<script src="/ui/plugins/swiper/swiper.min.js"></script>
	<script src="/ui/plugins/photoswipe/photoswipe.min.js"></script>
    <script src="/ui/plugins/photoswipe/photoswipe-ui-default.min.js"></script>	
	
	    <script type="text/javascript">
        var swiper = new Swiper('.swiper-normal', {
            pagination: '.swiper-pagination',
            autoplay: 2500,
            loop: true
        });

    </script>
	<script type="text/javascript">
function beforeSubmit(form){
if(form.danx.value==''){

   layer.open({
    content: '请选择规格'
    ,skin: 'msg'
    ,time: 2 //2秒后自动关闭
  });      
return false;
}

if(form.nums.value==0){

   layer.open({
    content: '请选择数量'
    ,skin: 'msg'
    ,time: 2 //2秒后自动关闭
  });      
return false;
}
return true;
}
</script>   
       <script type="text/javascript">
    function lip(){
    var id =<?=$fid?>;	
	var skuid =$("input[name='skuid']").val();
	var nums =$("input[name='nums']").val();
	var vip_price=document.getElementById("vipmoney").innerText;
	var price=document.getElementById("money").innerText;	
	if(skuid==""){
    var skuid=0;
     }	
	console.log(id);
	console.log(skuid);
	console.log(nums);
	console.log(vip_price);
	console.log(price);	

	//
	if(nums==0){
   layer.open({
    content: '请选择数量'
    ,skin: 'msg'
    ,time: 2 //2秒后自动关闭
  });      
return false;
}

    $.ajax({
        url: './lijigou.php',
        type: 'POST',
        dataType: 'json',
        data: {goodid: id,
		skuid: skuid,
		vip_price:vip_price,
		price:price,
		nums: nums
		
		},
      })
      .done(function(respon) {
        if (respon.error==0) {

		
	location.href="htdjxiadan.php";
		
      
        }
		
		if(respon.error==1){
        location.href="/wap/mlogin.php";    
        
        }
      })





	
  }	


  </script>  
  
        <script type="text/javascript">
    function lipp(){
    var id =<?=$fid?>;	
    var uid ='<?=$_COOKIE['userid']?>';	
	var vip_price=document.getElementById("vipmoney").innerText;
			
		if(uid==""){
        location.href="/wap/mlogin.php";  
		return false;
        }
	
	var skuid =$("input[name='skuid']").val();
	var nums =$("input[name='nums']").val();
	
	
	//

	if(nums==0){
   layer.open({
    content: '请选择数量'
    ,skin: 'msg'
    ,time: 2 //2秒后自动关闭
  });      
return false;
}

	if(skuid==""){
var skuid=0;
}
	
    $.ajax({
        url: './addgwc.php',
        type: 'POST',
        dataType: 'json',
        data: {goodid: id,
		skuid: skuid,
        vip_price:vip_price,	
		nums: nums
		
		},
      })
      .done(function(respon) {
        if (respon.error==0) {

		
		    layer.open({
    content: '加入购物车成功!'
    ,skin: 'msg'
    ,time: 2 
  }); 
       setTimeout(close,1100);
		
		
      
        }
		
		if(respon.error==1){
        location.href="/wap/mlogin.php";    
        }
		
		
		
      })





	
  }	


  </script>  
  
  <script>
  
  function close(){
	  
	location.reload();  
  }
  </script>
    
    <script type="text/javascript">
	
	$(document).ready(function(){
//加的效果
$(".add").click(function(){
var n=$(this).prev().val();
var num=parseInt(n)+1;
if(num==0){ return;}
if(num==100){ return;}
$(this).prev().val(num);
});
//减的效果
$(".jian").click(function(){
var n=$(this).next().val();
var num=parseInt(n)-1;
if(num==0){ return}
$(this).next().val(num);
});
})
    </script>	
	
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script>
    document.write("<script src='accessToken/signPackage.php?originUrl=" + window.location.href + "' type='text/javascript'><\/script>");
</script>
<script>
    var baseUrl = window.location.href;
    var img = '<?php echo $imgeve[0]?>';	
    var title = '<?php echo $shopname?>';
    var desc = '海购专区';	
    var wxData = {
        "imgUrl" : img,
        "link"   : baseUrl,
        "title"  : title,
        "desc"   : desc
    };
    wx.config({
        debug: false,
        appId: signPackage.appId,
        timestamp: parseInt(signPackage.timestamp),
        nonceStr: signPackage.nonceStr,
        signature: signPackage.signature,
        jsApiList: [
            'onMenuShareTimeline',
            'onMenuShareAppMessage'
        ]
    });
    wx.ready(function () {
        wx.onMenuShareTimeline({
            title: wxData.title,
            link: wxData.link,
            imgUrl: wxData.imgUrl,
            success: function () {
            }
        });
        wx.onMenuShareAppMessage({
            title: wxData.title,
            desc: wxData.desc,
            link: wxData.link,
            imgUrl: wxData.imgUrl,
            type: 'link',
            dataUrl: '',
            success: function () {
            }
        });
    });
</script>
<script type="application/javascript">
        function TabBox(tabName,tabBox){
            var tabName = document.getElementById(tabName).getElementsByTagName("li");
            var tabBox = document.getElementById(tabBox).getElementsByTagName("section");
            function switchTab(i){
                tabName[i].onclick=function(){
                    for(j=0; j<tabName.length; j++){   
                        if(i == j){     
                            tabName[j].className='curent';     
                            tabBox[j].style.display="block";
                        }else{     
                            tabName[j].className='';      
                            tabBox[j].style.display="none";   
                        }
                    }
                }
            }
            for( i=0; i<tabName.length; i++){   switchTab(i);  }
        }
      
        TabBox("tab-name","tab-box")
        
    </script>	
	
	
	<script>
	    var goodid =<?=$fid?>;	
		var psize='5';
		$("#pinglun").empty();
		
	    $.ajax({
        url: '/api/muyin/api.php?s=haigou.query_good_comment_list_by_goodid',
        type: 'GET',
        dataType: 'json',
        data: {good_id: goodid,
psize:psize
		},
      })
      .done(function(data) {
		var JSON = eval(data); 
        if (data.code==0) {		
		var arrLen = JSON.data.comment_info.length;
		
		console.log(arrLen);
        if(arrLen > 0){
          
		  for(var i=0; i<arrLen; i++){
							
             var result = '';
		   result +='<div style="padding-left:10px; border-bottom: 1px solid #e0e0e0">'
                    +'<p> <img src="'+JSON.data.comment_info[i].username+'" alt="" style="width: 31px; border-radius: 15px;">'
			+'<span style="margin-top: 5px;position: absolute;margin-left: 10px;font-size: 19px;">'+JSON.data.comment_info[i].shuyu+'</span>'
					+'<span style="float:right; font-size:10px; margin-right:5px;">'+JSON.data.comment_info[i].timestamp+'</span>'
                    + '</p>	'
                     +'<p style="margin-left: 41px;">'+JSON.data.comment_info[i].comment+'</p>'
                    + '<img src="'+JSON.data.comment_info[i].pic_arr[0]+'" style="width:80px; height:80px; margin-left: 41px;">'
				    +' </div>'	
							
          $("#pinglun").append(result);
          
		  }
		

		}else {
			
		             var result = '';
		   result +='<p> 暂无评价 </p>'

							
          $("#pinglun").append(result);	
			
			
		}
		
		
		
		
		

        }
		
		else {
   
		    layer.open({
    content: 'warn!'
    ,skin: 'msg'
    ,time: 2 
  }); 

   
        }
		
		
		
      })
	

	</script>

    <script type="text/javascript">
        var initPhotoSwipeFromDOM = function (gallerySelector) {

            // parse slide data (url, title, size ...) from DOM elements
            // (children of gallerySelector)
            var parseThumbnailElements = function (el) {
                var thumbElements = el.childNodes,
                    numNodes = thumbElements.length,
                    items = [],
                    figureEl,
                    linkEl,
                    size,
                    item;

                for (var i = 0; i < numNodes; i++) {

                    figureEl = thumbElements[i]; // <figure> element

                    // include only element nodes
                    if (figureEl.nodeType !== 1) {
                        continue;
                    }

                    linkEl = figureEl.children[0]; // <a> element

                    size = linkEl.getAttribute('data-size').split('x');

                    // create slide object
                    item = {
                        src: linkEl.getAttribute('href'),
                        w: parseInt(size[0], 10),
                        h: parseInt(size[1], 10)
                    };



                    if (figureEl.children.length > 1) {
                        // <figcaption> content
                        item.title = figureEl.children[1].innerHTML;
                    }

                    if (linkEl.children.length > 0) {
                        // <img> thumbnail element, retrieving thumbnail url
                        item.msrc = linkEl.children[0].getAttribute('src');
                    }

                    item.el = figureEl; // save link to element for getThumbBoundsFn
                    items.push(item);
                }

                return items;
            };

            // find nearest parent element
            var closest = function closest(el, fn) {
                return el && (fn(el) ? el : closest(el.parentNode, fn));
            };

            // triggers when user clicks on thumbnail
            var onThumbnailsClick = function (e) {
                e = e || window.event;
                e.preventDefault ? e.preventDefault() : e.returnValue = false;

                var eTarget = e.target || e.srcElement;

                // find root element of slide
                var clickedListItem = closest(eTarget, function (el) {
                    return (el.tagName && el.tagName.toUpperCase() === 'FIGURE');
                });

                if (!clickedListItem) {
                    return;
                }

                // find index of clicked item by looping through all child nodes
                // alternatively, you may define index via data- attribute
                var clickedGallery = clickedListItem.parentNode,
                    childNodes = clickedListItem.parentNode.childNodes,
                    numChildNodes = childNodes.length,
                    nodeIndex = 0,
                    index;

                for (var i = 0; i < numChildNodes; i++) {
                    if (childNodes[i].nodeType !== 1) {
                        continue;
                    }

                    if (childNodes[i] === clickedListItem) {
                        index = nodeIndex;
                        break;
                    }
                    nodeIndex++;
                }



                if (index >= 0) {
                    // open PhotoSwipe if valid index found
                    openPhotoSwipe(index, clickedGallery);
                }
                return false;
            };

            // parse picture index and gallery index from URL (#&pid=1&gid=2)
            var photoswipeParseHash = function () {
                var hash = window.location.hash.substring(1),
                params = {};

                if (hash.length < 5) {
                    return params;
                }

                var vars = hash.split('&');
                for (var i = 0; i < vars.length; i++) {
                    if (!vars[i]) {
                        continue;
                    }
                    var pair = vars[i].split('=');
                    if (pair.length < 2) {
                        continue;
                    }
                    params[pair[0]] = pair[1];
                }

                if (params.gid) {
                    params.gid = parseInt(params.gid, 10);
                }

                return params;
            };

            var openPhotoSwipe = function (index, galleryElement, disableAnimation, fromURL) {
                var pswpElement = document.querySelectorAll('.pswp')[0],
                    gallery,
                    options,
                    items;

                items = parseThumbnailElements(galleryElement);

                // define options (if needed)
                options = {

                    // define gallery index (for URL)
                    galleryUID: galleryElement.getAttribute('data-pswp-uid'),

                    getThumbBoundsFn: function (index) {
                        // See Options -> getThumbBoundsFn section of documentation for more info
                        var thumbnail = items[index].el.getElementsByTagName('img')[0], // find thumbnail
                            pageYScroll = window.pageYOffset || document.documentElement.scrollTop,
                            rect = thumbnail.getBoundingClientRect();

                        return { x: rect.left, y: rect.top + pageYScroll, w: rect.width };
                    }

                };

                // PhotoSwipe opened from URL
                if (fromURL) {
                    if (options.galleryPIDs) {
                        // parse real index when custom PIDs are used
                        // http://photoswipe.com/documentation/faq.html#custom-pid-in-url
                        for (var j = 0; j < items.length; j++) {
                            if (items[j].pid == index) {
                                options.index = j;
                                break;
                            }
                        }
                    } else {
                        // in URL indexes start from 1
                        options.index = parseInt(index, 10) - 1;
                    }
                } else {
                    options.index = parseInt(index, 10);
                }

                // exit if index not found
                if (isNaN(options.index)) {
                    return;
                }

                if (disableAnimation) {
                    options.showAnimationDuration = 0;
                }

                // Pass data to PhotoSwipe and initialize it
                gallery = new PhotoSwipe(pswpElement, PhotoSwipeUI_Default, items, options);
                gallery.init();
            };

            // loop through all gallery elements and bind events
            var galleryElements = document.querySelectorAll(gallerySelector);

            for (var i = 0, l = galleryElements.length; i < l; i++) {
                galleryElements[i].setAttribute('data-pswp-uid', i + 1);
                galleryElements[i].onclick = onThumbnailsClick;
            }

            // Parse URL and open gallery if it contains #&pid=3&gid=1
            var hashData = photoswipeParseHash();
            if (hashData.pid && hashData.gid) {
                openPhotoSwipe(hashData.pid, galleryElements[hashData.gid - 1], true, true);
            }
        };

        // execute above function
        initPhotoSwipeFromDOM('.my-gallery');
    </script>


	<script>
	
 $(document).ready(function () {
 $(".swiper-slide #sbtan,.H-line-height-0 #xfgzs").click(function(){
	
	
     console.log($(this).attr("src"))
	 var url=$(this).attr("src");
    var img = "<img src='" + url + "' style= 'width:100%' id='sbimg' />";  
    	
 layer.open({  
	    type: 1,  
	  
	    title: false, //不显示标题  
	    area:['auto','auto'],  
	   area: ['100%', '100%'],  
	   content: img, //捕获的元素，注意：最好该指定的元素要存放在body最外层，否则可能被其它的相对元素所影响  
	   cancel: function () {  
	      layer.msg('图片查看结束！', { time: 5000, icon: 6 });  
	    }  
	 });  
	 });
	 });	
	</script>

</body>
</html>